package collection;

import java.util.ArrayList;
import java.util.Collection;

public class RemoveAll {
    public static void main(String[] args) {
        Collection c1=new ArrayList();
        c1.add("a");
        c1.add("b");
        c1.add("c");
        System.out.println("c1:"+c1);
        Collection c2=new ArrayList();
        c2.add("a");
        c2.add("b");
        System.out.println("c2:"+c2);
        c1.removeAll(c2);//差集,去除a,b相交部分
        System.out.println(c1);

    }
}
